package it.koutifaris.travianmap.view.serversview;

import it.koutifaris.travianmap.command.Command;
import it.koutifaris.travianmap.context.HasApplicationContex;
import it.koutifaris.travianmap.dal.TravianServerService;
import it.koutifaris.travianmap.dal.TravianServerService.TravianServer;
import it.koutifaris.travianmap.view.serversettingsview.ServerSettingsActivity;

public class OpenServerSettingsCommand extends HasApplicationContex implements Command {

	private final TravianServer travianServer;

	public OpenServerSettingsCommand(TravianServerService.TravianServer travianServer) {
		this.travianServer = travianServer;
	}

	@Override
	public void execute() {
		ServerSettingsActivity.startActivity(getActivity(), travianServer);
	}

}
